package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品优惠券业务对象 p_store_product_coupon
 *
 * @author ruoyi
 * @date 2022-08-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("商品优惠券业务对象")
public class PStoreProductCouponBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id", required = true)
    @NotNull(message = "商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 优惠劵id
     */
    @ApiModelProperty(value = "优惠劵id", required = true)
    @NotNull(message = "优惠劵id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long issueCouponId;

}
